package ch.elca.training.service.impl;

import ch.elca.training.dao.EmployeeDao;
import ch.elca.training.dom.Employee;
import ch.elca.training.service.TestService;
import ch.elca.training.service.common.BaseService;

public class TestServiceImpl extends BaseService implements TestService {
	private EmployeeDao m_employeeDao;
	
	public void saveEmployee(Employee employee) throws Exception {
		employee = new Employee();
		employee.setVisa("HUN");
		employee.setVersion(1);
		
		EmployeeDao employeeDao = getEmployeeDao();
		employeeDao.saveOrUpdate(employee);
	}

	public EmployeeDao getEmployeeDao() {
		return m_employeeDao;
	}

	public void setEmployeeDao(EmployeeDao employeeDao) {
		this.m_employeeDao = employeeDao;
	}

}
